﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ECopyType extends Object
    {
        public var __value:int;
        public static const _ECopyTypeNormal:int = 0;
        public static const _ECopyTypeTower:int = 1;
        public static const _ECopyTypeDefense:int = 2;
        public static const _ECopyTypeDrama:int = 3;
        public static const _ECopyTypeCoin:int = 4;
        public static const _ECopyTypePush:int = 5;
        public static const _ECopyTypeBattleField:int = 6;
        public static const _ECopyTypeArena:int = 7;
        public static const _ECopyTypeVip:int = 8;
        public static const _ECopyTypeWedding:int = 9;
        public static const _ECopyTypePet:int = 10;
        public static const _ECopyTypeGuildManor:int = 11;
        public static const _ECopyTypeEscort:int = 12;
        public static const _ECopyTypeGuildBoss:int = 13;
        public static const _ECopyTypeGuildWar:int = 14;
        public static const _ECopyTypeChallenge:int = 15;
        public static const _ECopyTypePetBreak:int = 16;
        public static const _ECopyTypeSingle:int = 17;
        public static const _ECopyTypeTeam:int = 18;
        public static const _ECopyTypeCross:int = 19;
        public static const _ECopyTypeDice:int = 20;
        public static const _ECopyTypeCrossBossHole:int = 21;
        public static const _ECopyTypeQuestion:int = 22;
        public static const _ECopyTypeTreasureMap:int = 23;
        public static const _ECopyTypeSunbath:int = 24;
        public static const _ECopyTypeHoleBoss:int = 25;
        public static const _ECopyTypeHeavenPlacard:int = 26;
        public static const _ECopyTypeEarthPlacard:int = 27;
        public static const _ECopyTypeGuildWine:int = 28;
        public static const _ECopyTypePeaceBoss:int = 29;
        public static const _ECopyTypeRaiders:int = 30;
        public static const _ECopyTypeGuildDefense:int = 31;
        public static const _ECopyTypeTeamDefense:int = 32;
        public static const _ECopyTypeAutoArena:int = 33;
        public static const _ECopyTypeHeroExpedition:int = 34;
        public static const _ECopyTypeMonsterSiege:int = 35;
        public static const _ECopyTypePlayerBattle:int = 36;
        public static const _ECopyTypeUniqueBoss:int = 37;
        public static const _ECopyTypeCrossMainCity:int = 38;
        public static const _ECopyTypeArena2v2:int = 39;
        public static const _ECopyTypeMainCityBattle:int = 40;
        public static const _ECopyTypeMainCityBattel2:int = 41;
        public static const _ECopyTypeKingCityBoss:int = 42;
        public static const _ECopyTypeArenaBreakRoom:int = 43;
        public static const _ECopyTypeExp:int = 44;
        public static const _ECopyTypeMergeBoss:int = 45;

        public function ECopyType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ECopyType
        {
            return new ECopyType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ECopyType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 46)
            {
                throw new MarshalException();
            }
            return ECopyType.convert(_loc_2);
        }// end function

    }
}
